﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="CadastrarAtendente.aspx.cs" Inherits="Atendex.Web.CadastrarAtendente" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>Cadastro de Atendente</h3>
    <div id="page-form">
        <p><asp:Label runat="server" ID="lblMensagem" Visible="false"></asp:Label></p>
        <asp:Panel runat="server" ID="pnlCadastro">
        <fieldset class="form-data">
            <legend>Dados Pessoais</legend>
            <p>
                <asp:Label ID="lblNome" AssociatedControlID="txtNome" runat="server" Text="Nome" />
                <asp:TextBox runat="server" ID="txtNome"></asp:TextBox>
            </p>

            <p>
                <asp:Label ID="lblEmail" AssociatedControlID="txtEmail" runat="server" Text="Email" />
                <asp:TextBox runat="server" ID="txtEmail"></asp:TextBox>
            </p>

            <p>
                <asp:Label ID="lblLogin" AssociatedControlID="txtLogin" runat="server" Text="Login" />
                <asp:TextBox runat="server" ID="txtLogin"></asp:TextBox>
            </p>

            <p>
                <asp:Label ID="lblSenha" AssociatedControlID="txtSenha" runat="server" Text="Senha" />
                <asp:TextBox runat="server" ID="txtSenha" TextMode="Password"></asp:TextBox>
            </p>
        </fieldset>
        <fieldset class="actions">
            <asp:Button runat="server" ID="btnSalvar" OnClick="btnSalvar_Click" Text="Salvar" />
            <input type="reset" value="Limpar" />
        </fieldset>
        
        
        
        <p>
        
       

            <asp:GridView ID="gdvAtendentes" AutoGenerateColumns="false" runat="server" CellPadding="4" ForeColor="#333333" 
                GridLines="None" 
                OnRowCancelingEdit="gdvCancelEdit" OnRowEditing="gdvEdit" OnRowUpdating="gdvUpdate"
                Width="535" DataKeyNames="Id" HorizontalAlign="Center">
                <FooterStyle BackColor="#507CD1" Font-Bold="True"  ForeColor="White" />
                <RowStyle BackColor="#EFF3FB" />
                <PagerStyle BackColor="#2461BF" ForeColor="White"  />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
                
                <Columns>
                
              <asp:TemplateField HeaderText="Nome">
                
                <ItemTemplate>
                <asp:Label runat="server" ID="lblNome" Text='<%# DataBinder.Eval(Container.DataItem, "Nome") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                <asp:TextBox runat="server" ID="txtNome" Text='<%# DataBinder.Eval(Container.DataItem, "Nome") %>'></asp:TextBox>
                </EditItemTemplate>
                
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="Login">
                
                <ItemTemplate>
                <asp:Label runat="server" ID="lblLogin" Text='<%# DataBinder.Eval(Container.DataItem, "Login") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                <asp:TextBox runat="server" ID="txtLogin" Text='<%# DataBinder.Eval(Container.DataItem, "Login") %>'></asp:TextBox>
                </EditItemTemplate>
                
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="Email">
                
                <ItemTemplate>
                <asp:Label runat="server" ID="lblEmail" Text='<%# DataBinder.Eval(Container.DataItem, "Email") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                <asp:TextBox runat="server" ID="txtEmail" Text='<%# DataBinder.Eval(Container.DataItem, "Email") %>'></asp:TextBox>
                </EditItemTemplate>
                
                </asp:TemplateField>
                
                
                <asp:TemplateField HeaderText="Senha">
                
                <ItemTemplate>
                <asp:Label runat="server" ID="lblSenha" Text='****'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                <asp:TextBox runat="server" ID="txtSenha" Text='' TextMode="Password"></asp:TextBox>
                </EditItemTemplate>
                
                </asp:TemplateField>
                
               
                <asp:CommandField ButtonType="Link" CancelText="Cancelar" EditText="Editar" UpdateText="Salvar" ShowEditButton="true" ShowCancelButton="true" />
               
                </Columns>
                
            </asp:GridView>
        
        </p>
        
        
        
        </asp:Panel>
    </div>
</asp:Content>
